﻿using LibraryProject.Model;

namespace LibraryProject.Tool;

public class LinkFileTool {
    public static List<LinkFile> SampleLinkFiles() {
        // 插入初始化数据
        var d1 = new LinkFile() { Name = "目录1-0", IsDir = 1, ParentId = 0 }; //1
        var d2 = new LinkFile() { Name = "目录2-0", IsDir = 1, ParentId = 0 }; //2
        var h1 = new LinkFile() { Name = "https://taobao.com", IsDir = 0, ParentId = 0 }; //3
        var d3 = new LinkFile() { Name = "目录1-1", IsDir = 1, ParentId = 1 }; //4
        var h2 = new LinkFile() { Name = "https://baidu.com", IsDir = 0, ParentId = 1 }; //5
        var d4 = new LinkFile() { Name = "目录2-1", IsDir = 1, ParentId = 2 }; //
        var h3 = new LinkFile() { Name = "https://www.blazor.zone/introduction", IsDir = 0, ParentId = 4 }; //7
        var h4 = new LinkFile() { Name = "https://www.csdn.net/", IsDir = 0, ParentId = 6 }; //8
        return new List<LinkFile>() { d1, d2, h1, d3, h2, d4, h3, h4 };
    }
}